package com.ruikong.dazhi.service.basicinfo;


import com.github.pagehelper.PageInfo;
import com.ruikong.dazhi.controller.result.BaseResult;
import com.ruikong.dazhi.entity.basicinfo.Shop;
import com.ruikong.dazhi.model.input.ShopPageInput;
import com.ruikong.dazhi.model.output.ShopPageOutput;
import com.ruikong.dazhi.model.output.TreeMenuOutput;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * (Shop)表服务接口
 *
 * @author HuaJiaYi
 * @since 2020-12-17 10:39:57
 */
public interface IShopService {

    Shop queryById(Integer id);

    Integer insert(Shop shop);

    Integer update(Shop shop);

    Integer deleteById(Integer id);

    PageInfo<ShopPageOutput> getShopPageInfo(ShopPageInput input);

    Integer isExist(Shop shop);
    Integer isShopExist(String shopSn);

    List<TreeMenuOutput> queryAllTree();

    List<Shop> queryAll();

    List<Shop> getAllUsedShop();

    BaseResult shopImport(MultipartFile file, Integer personnelId);

}